#include <stdio.h>
#include <stdlib.h>

#include "convert_util.h"

int main(int argc, char *argv[])
{
    char str[64];
    uint8_t hex[20] = {0};
    printf("convert_char2hex(A): %d\n", convert_char2hex('A'));
    printf("convert_hex2char(10): %c\n", convert_hex2char(10));
    printf("convert_hex2dec(\"100\"): %u\n", convert_hex2dec("100"));
    printf("convert_str2hex(): %d\n", convert_str2hex(hex, 20, "edcee37d5b87ad0d101529f4d1669d3f"));
    convert_hex2str(str, 64, hex, 10);
    printf("str: %s\n", str);
    convert_hex2str(str, 64, hex, 16);
    printf("str: %s\n", str);
    convert_hex2str(str, 64, hex, 20);
    printf("str: %s\n", str);
    convert_hex2str(str, 30, hex, 16);
    printf("str: %s\n", str);
    return 0;
}
